from django.db import models
from django.contrib.auth.models import AbstractUser


# Create your models here.


class UserInfo(AbstractUser):
    title = models.CharField(max_length=36, null=True, verbose_name='登入名')
    mobile = models.CharField(max_length=11, unique=True, verbose_name='电话')
    address = models.CharField(max_length=128, null=True, verbose_name='地址')
    signature = models.CharField(max_length=256, null=True, verbose_name='个性签名')
    icon = models.ImageField(upload_to='icon', default='icon/default.png', verbose_name='头像')
    gender = models.CharField(max_length=12, default='未知', verbose_name='性别')

